﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AdminUI.Controllers
{
    public class VipLevelController : Controller
    {
        // GET: VipLevel
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Add()
        {
            return PartialView();
        }

        public ActionResult Edit(int? id)
        {
            if (!id.HasValue)
            {
                return View("error");
            }
            var data = HttpHelper.HttpGet<Result<Param_VipLevel>>(Tools.ApiPath + "api/VipLevel/Find/" + id.Value, "get").Data;
            return PartialView(data);
        }
    }
}